# coding=utf-8
from django.contrib import admin
from django.conf import settings
from apps.cooperation.models import Cooperation

class CooperationAdmin(admin.ModelAdmin):
    list_display = ('cooperation_name_en', 'cooperation_name_zh', 'cooperation_type', 'cooperation_homepage')
    list_filter = ('cooperation_type',)
    list_max_show_all = 100     #   如果合作者放不下，改这个数字
    list_per_page = 10
    search_fields = ['cooperation_name_zh', 'cooperation_name_en']

admin.site.register(Cooperation, CooperationAdmin)
